package cn.wawi.entity.sys;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
* sys_log 实体类
* 2016-06-13 16:57:19 cn.wawi.entity.sys
*/ 
public class Log implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String optUser;
	private String realname;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date inputTime=new Date();
	private String description;
	private String ip;
	private String os;
	private String browser;
	private String isSuccess;
	private String requestParam;
	private String operationCode;
	
	public Log(){
	}
	/**
	 * @param optUser  操作用户
	 * @param realname 用户真实姓名
	 * @param methodName 方法
	 * @param actionName 类名
	 * @param isSuccess 是否成功 1成功 0失败
	 * @param description 描述
	 */
	public Log(String optUser,String realname,String operationCode,String isSuccess,String description){
		this.optUser=optUser;
		this.realname=realname;
		this.operationCode=operationCode;
		this.isSuccess=isSuccess;
		this.description=description;
	}
	public Log(String description,String ip){
		this.description=description;
		this.ip=ip;
	}
	public void setId(Long id){
		this.id=id;
	}
	public Long getId(){
		return id;
	}
	public void setOptUser(String optUser){
		this.optUser=optUser==null?null:optUser.trim();
	}
	public String getOptUser(){
		return optUser;
	}
	public void setRealname(String realname){
		this.realname=realname==null?null:realname.trim();
	}
	public String getRealname(){
		return realname;
	}
	public void setInputTime(java.util.Date inputTime){
		this.inputTime=inputTime;
	}
	public java.util.Date getInputTime(){
		return inputTime;
	}
	public void setDescription(String description){
		this.description=description==null?null:description.trim();
	}
	public String getDescription(){
		return description;
	}
	public void setIp(String ip){
		this.ip=ip==null?null:ip.trim();
	}
	public String getIp(){
		return ip;
	}
	public void setOs(String os){
		this.os=os==null?null:os.trim();
	}
	public String getOs(){
		return os;
	}
	public void setBrowser(String browser){
		this.browser=browser==null?null:browser.trim();
	}
	public String getBrowser(){
		return browser;
	}
	public void setIsSuccess(String isSuccess){
		this.isSuccess=isSuccess==null?null:isSuccess.trim();
	}
	public String getIsSuccess(){
		return isSuccess;
	}
	public void setRequestParam(String requestParam){
		this.requestParam=requestParam==null?null:requestParam.trim();
	}
	public String getRequestParam(){
		return requestParam;
	}
	public void setOperationCode(String operationCode){
		this.operationCode=operationCode==null?null:operationCode.trim();
	}
	public String getOperationCode(){
		return operationCode;
	}
}

